package com.gxa.common;

import java.math.BigDecimal;

/*
分页查询响应实体类：响应状态码 提示信息 响应的数据 总条数
 */
public class JsonResult<T> {
    private Integer code;//响应状态码 0 500 501
    private String msg;//提示信息
    private Integer count;//总条数
    private T data;//List Map

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "JsonResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
